import numpy as np
import cv2
import matplotlib.pyplot as plt
# # zong :9  ren width: 2/9-7/9 88-312 height:20px
#import matplotlib.pyplot as plt
# o=cv2.imread("announcer .jpg")
# orgb=cv2.cvtColor(o,cv2.COLOR_BGR2RGB)
# bgd=np.zeros((1,65),np.float64)
# fgd=np.zeros((1,65),np.float64)
# mask2=np.zeros(o.shape[:2],np.uint8)
# #
# # mask2[50:300,100:300]=3
# mask2[60:300,100:300]=1
# cv2.grabCut(o,mask2,None,bgd,fgd,5,cv2.GC_INIT_WITH_MASK)
# mask2=np.where((mask2==2)|(mask2==0),0,1).astype('uint8')
# ogc=o*mask2[:,:,np.newaxis]
# ogc=cv2.cvtColor(ogc,cv2.COLOR_BGR2RGB)
# cv2.imshow("orgb",orgb)
# cv2.imshow("ogc",ogc)
# cv2.waitKey(0)
